package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_stk_holdernumber")
public class FStkHoldernumber {
    @Id
    private Long tid;

    /**
     * TS股票代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 公告日期
     */
    @Column(name = "ann_date")
    private String annDate;

    /**
     * 截止日期
     */
    @Column(name = "end_date")
    private String endDate;

    /**
     * 股东户数
     */
    @Column(name = "holder_num")
    private Integer holderNum;

    public FStkHoldernumber(Long tid, String tsCode, String annDate, String endDate, Integer holderNum) {
        this.tid = tid;
        this.tsCode = tsCode;
        this.annDate = annDate;
        this.endDate = endDate;
        this.holderNum = holderNum;
    }

    public FStkHoldernumber() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取TS股票代码
     *
     * @return ts_code - TS股票代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置TS股票代码
     *
     * @param tsCode TS股票代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取公告日期
     *
     * @return ann_date - 公告日期
     */
    public String getAnnDate() {
        return annDate;
    }

    /**
     * 设置公告日期
     *
     * @param annDate 公告日期
     */
    public void setAnnDate(String annDate) {
        this.annDate = annDate;
    }

    /**
     * 获取截止日期
     *
     * @return end_date - 截止日期
     */
    public String getEndDate() {
        return endDate;
    }

    /**
     * 设置截止日期
     *
     * @param endDate 截止日期
     */
    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    /**
     * 获取股东户数
     *
     * @return holder_num - 股东户数
     */
    public Integer getHolderNum() {
        return holderNum;
    }

    /**
     * 设置股东户数
     *
     * @param holderNum 股东户数
     */
    public void setHolderNum(Integer holderNum) {
        this.holderNum = holderNum;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", annDate=").append(annDate);
        sb.append(", endDate=").append(endDate);
        sb.append(", holderNum=").append(holderNum);
        sb.append("]");
        return sb.toString();
    }
}